<?php
/**
 * Created by PhpStorm.
 * User: white
 * Date: 2020/5/12
 * Time: 17:00
 */

namespace app\common\validate;

use think\Validate;

class Information extends Validate
{
    protected $rule = [
        'title|资讯标题' => 'require|unique:information',
        'author|作者' => 'require',
        'img|头像' => 'require',
        'content|资讯内容' => 'require'
    ];

    Protected $scene = [
        'edit' => ['title','author','content']
    ];
}